package com.opener.web.service.sys;


import com.opener.web.model.sys.SysDict;
import com.opener.web.model.sys.SysDictSearchArgs;

import java.util.List;

/**
 *
 * @author baboy
 * @date 07/12/2016
 */
public interface SysDictService {
    Integer add(SysDict dict);
    boolean update(SysDict dict);
    boolean addItems(String dictKey, List<SysDict.SysDictItem> items);
    boolean removeItems(String dictKey);
    List<SysDict>search(SysDictSearchArgs searchArgs);
    SysDict getByKey(String key);
    SysDict.SysDictItem getItem(String dictKey, String itemKey);
    String getItemValue(String dictKey, String itemKey);
    Object getItemTypedValue(String dictKey, String itemKey);
    void setCacheExpireTimeInSeconds(Integer cacheExpireTimeInSeconds);
    List<SysDict> getAllDicts();
}
